Testing integrated circuit designs containing multiple phase rotators

ABSTRACT

Approaches for testing phase rotators are provided. A circuit for testing phase rotators includes a compare element including a first input and a second input, wherein the compare element is configured to compare a first phase of a first signal provided at the first input to a second phase of a second signal provided at the second input. The circuit also includes a first test bus connected to the first input and a second test bus connected to the second input.

FIELD OF THE INVENTION

The invention relates to integrated circuit testing and, moreparticularly, to testing phase rotators.

BACKGROUND

High speed links employ sophisticated analog circuits and logic in orderto achieve performance targets and in many cases utilize a plurality ofcalibrated local clocks in order to transfer data while maximizing datatransmit and capture margins. Phase rotator circuits are commonly usedto produce the plurality of local clocks. Phase rotators act as clockphase mixers and provide a mechanism of creating, manipulating, andcalibrating tightly timed clock edges from a much smaller set of highaccuracy root phases. For example, a phase rotator may be designed toprovide 128 output phases using just 16 selectable input phases.Further, the compact nature of the phase rotator structure allows for aplurality of phase rotators to be placed within the high speed link. Forexample, a DDR data link may be implemented with separate Rx (read) andTx (write) clock phase rotators for each data bit/lane, and providedwith additional phase rotators for digital synchronization andcalibration.

Manufacturing defects have the potential to totally disable a phaserotator and, as such, it is common to test for such defects. However, itcan be very difficult to ensure no manufacturing defects exist in aphase rotator design. A manufacturing tester normally does not have fineenough resolution to discern whether a phase rotator is properlyoperating at its functional speed since the manufacturing testertypically operates at a slower speed than the phase rotator operates.Also, some manufacturing testers do not have fine enough granularity todiscern the individual step increments of a phase rotator. As a result,the quality of the manufacturing test is reduced to match the quality ofthe manufacturing tester or test-only logic is inserted into the design.This is counterproductive since reducing the quality of themanufacturing test may lead to defective parts being released from themanufacturer, and inserting test-only logic onto the design increasesarea and power demands.

SUMMARY

In a first aspect of the invention, there is a circuit for testing phaserotators. The circuit includes a compare element including a first inputand a second input, wherein the compare element is configured to comparea first phase of a first signal provided at the first input to a secondphase of a second signal provided at the second input. The circuit alsoincludes a first test bus connected to the first input and a second testbus connected to the second input.

In another aspect of the invention, there is a system for testing phaserotators. The system includes a first test bus connected to a firstinput of a compare element and a second test bus connected to a secondinput of the compare element. The system also includes a control circuitconfigured to: selectively connect a first phase source to the firsttest bus; selectively connect a second phase source comprising an outputof one of a plurality of phase rotators to the second test bus; store anoutput of the compare element; and provide inputs to the plurality ofphase rotators.

In another aspect of the invention, a method of testing phase rotatorsincludes connecting a first phase source to a first input of a compareelement. The method also includes connecting a second phase source to asecond input of a compare element, wherein the second phase sourcecomprises an output of one a plurality of phase rotators that areselectively connectable to the second input. The method additionallyincludes generating an expected value of a phase relationship betweenthe first phase source and the second phase source. The method furtherincludes comparing the expected value to an output of the compareelement.

In another aspect of the invention, a design structure tangibly embodiedin a machine readable storage medium for designing, manufacturing, ortesting an integrated circuit is provided. The design structurecomprises the structures of the present invention. In furtherembodiments, a hardware description language (HDL) design structureencoded on a machine-readable data storage medium comprises elementsthat when processed in a computer-aided design system generates amachine-executable representation of a circuit for testing phaserotators which comprises the structures of the present invention. Instill further embodiments, a method in a computer-aided design system isprovided for generating a functional design model of a circuit fortesting phase rotators. The method comprises generating a functionalrepresentation of the structural elements of the circuit for testingphase rotators.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The present invention is described in the detailed description whichfollows, in reference to the noted plurality of drawings by way ofnon-limiting examples of exemplary embodiments of the present invention.

FIG. 1a shows a phase rotator and FIG. 1b shows waveforms associatedwith the phase rotator;

FIG. 2 shows an analog domain within a high speed link;

FIG. 3 shows a phase rotator test structure in accordance with aspectsof the invention;

FIG. 4 shows exemplary logic functions for a phase rotator teststructure in accordance with aspects of the invention;

FIG. 5 shows a phase rotator test structure in accordance with aspectsof the invention;

FIGS. 6 and 7 show flows of processes in accordance with aspects of theinvention;

FIGS. 8a-c show exemplary phase pairs and outputs in accordance withaspects of the invention;

FIGS. 9-12 show phase rotator test structures in accordance with aspectsof the invention;

FIGS. 13 and 14 show flows of processes in accordance with aspects ofthe invention;

FIG. 15 shows a phase rotator test structure in accordance with aspectsof the invention;

FIG. 16 shows a flow of a process in accordance with aspects of theinvention;

FIG. 17 shows a phase rotator test structure in accordance with aspectsof the invention;

FIG. 18 shows a flow of a process in accordance with aspects of theinvention;

FIG. 19 shows a phase rotator test structure in accordance with aspectsof the invention;

FIG. 20 shows a flow of a process in accordance with aspects of theinvention;

FIG. 21 shows exemplary pattern sets for phase rotator testing;

FIGS. 22a-i show truth tables based on the pattern sets of FIG. 21 inaccordance with aspects of the invention;

FIGS. 23 and 24 show flows of processes in accordance with aspects ofthe invention;

FIG. 25 shows exemplary pattern sets for phase rotator testing inaccordance with aspects of the invention;

FIGS. 26 and 27 show flows of processes in accordance with aspects ofthe invention; and

FIG. 28 is a flow diagram of a design process used in semiconductordesign, manufacture, and/or test.

DETAILED DESCRIPTION

The invention relates to integrated circuit testing and, moreparticularly, to testing phase rotators. According to aspects of theinvention, there is a high speed I/O design which tests two or morephase rotators in parallel, testing one phase rotator against another.Implementations of the invention may be used to fully verify the phaserotators are defect free. In embodiments, the testing scheme utilizes atunable AND gate, without the need use additional gates and extratest-only phase rotators.

In a particular exemplary embodiment, half of the phase rotators of ahigh speed I/O feed one side of a tunable AND circuit, and the otherhalf of the phase rotators feed the other side of the tunable ANDcircuit. In aspects, the tunable AND circuit is provided with controlsthat allow a user (e.g., a test engineer) to add a finite amount ofdelay to either input and to control the minimum pulse width toconsider. Such controls may be used in diagnosing any defects that arefound during testing. In this exemplary embodiment, a typicalmanufacturing test would run the following three tests: (1) PhaseRotator A and Phase Rotator B are in phase and both phase rotators aresimultaneously rotated through their design range, in which case theoutput of the tunable AND circuit should always be a logical one to passthe test; (2) Phase Rotator A is 180 degrees ahead of Phase Rotator Band both phase rotators are simultaneously rotated through their designrange, in which case the output of the tunable AND circuit should alwaysbe a logical zero to pass the test; (3) Phase Rotator B is 180 degreesahead of Phase Rotator A and both phase rotators are simultaneouslyrotated through their design range, in which case the output of thetunable AND circuit should always be a logical zero to pass the test.

Implementations of the invention may be driven by a Built-In Self Test(BIST) finite state machine that is configured to cycle through allphase rotators enabling and testing two phase rotators at a time. Inaspects, the BIST finite state machine is configured to run throughtests (1)-(3) on the enabled pair of phase rotators, then disable thosetwo phase rotators and enable the next pair for the same testing. Inembodiments, a result latch is used to store an indication of whetherany defects are found.

In a first aspect of the invention, there is a structure for providing atest of a plurality of phase rotators in an integrated circuit. Thestructure includes a phase comparison element including a first andsecond phase input and an output which is a function of the phaserelationship between the first and second phases. The structure alsoincludes a first phase clock source that is connectible to the firstphase input. The structure additionally includes a plurality of phaserotators, each of the phase rotators selectively connectible to thesecond phase input. The structure further includes logic for cyclingthrough each of the plurality of phase rotators as well as cyclingthrough a set of input parameters for each phase rotator and samplingthe output of said phase comparison means at each iteration.

In another aspect of the invention, there is a method of providing atest of a plurality of phase rotators in an integrated circuit. Themethod includes: selecting a first phase source as a first input to aphase comparator circuit; selecting a first phase for the first phasesource; selecting a second phase source as second input to a phasecomparator circuit; and selecting a second phase for the second phasesource. The method also includes generating a phase compare expect forthe first and second sources based on the first and second phasesselected and testing the expect value against the output of thecomparator circuit. The method additionally includes iterating through aplurality of first and second phases.

Phase rotators are usable to construct an output signal having a phasethat is related to the phase of one or more input signals in somedesirable way. Phase rotators are often used in serial data transmissionand receiving circuitry as a component for aligning a sampling clock torecover serial data. Phase rotators typically generate an output signalhaving a phase with a known relationship to the serial data. The outputsignal is typically generated from a mix of incoming signals havingdefined offset phase relationships (commonly referred to as phasors).

Referring to FIG. 1a , a phase rotator 100 is shown. Two phase selectionunits 101 and 102 provide selection of incoming phases 104. Unit 101selects one of even incoming phases 1040, 1042, etc., as provided bycontrol selection signal(s) 105, and unit 102 selects one of oddincoming phases 1041, 1043, etc. as provided by control selectionsignal(s) 106. The output phases 107 and 108 of units 101 and 102 areprovided to a phase mixer 103 which weights the incoming phases 107 and108 in accordance with a control signal 109 to form a composite phaseoutput 110. Phase output 110 may be related only to the phase of 107,only to the phase of 108, or may be a phase incrementally spaced between107 and 108.

Referring to FIG. 1b , representative waveforms for the phase rotator ofFIG. 1a are shown. Waveforms 1040, 1041, 1042, and 1043, illustrate fourincoming phases separated by 90°. Waveform 110 illustrates the casewhere selection signal 105 selects 1040, selection signal 106 selects1041, and control signal 109 is incremented. As selection signal 109 isincremented, the waveform 110 (i.e., phase output) shifts to the rightas shown in regions 112. Both the rising and falling edges of the phaseoutput 110 shift. The number of incoming phases 104 and weightingincrements as controlled by control signal 109 is variable. Forinstance, the number of incoming phases may be 16 and the number ofweighting steps may be 8, providing 128 unique variations of outputphase 110.

FIG. 2 illustrates an example of an analog domain within a high speedlink. Analog link 200 contains a reference clock input 201, phase lockloop (PLL) 202, and a PLL feedback connection 203. PLL 202 createsmultiple phases 204 which are provided to a plurality of data transmitphase rotators 205 _(0:n) that create data transmit clock phases 233_(0:n). The phases 204 are also provided to a strobe transmit phaserotator 213 that creates strobe transmit phase 234. The phases 204 arealso provided to system phase rotator 219 that create one or more systemor link phases 220. Analog link 200 further contains driver circuits 206_(0:n) that use transmit clock phases 233 _(0:n) to capture transmitdata 210 _(0:n) from the digital portion of the link and drive the datasignals to off-chip pads 207 _(0:n) via connections 230 _(0:n).Likewise, phase rotator 213 provides its generated clock 234 to drivercircuit 214 which captures strobe data 217 from the digital portion ofthe link and drives the strobe signal(s) off-chip via connection 226 topad 216. Phase rotator 219 and phase rotated clock 220 may servemultiple purposes including conditioning the launch of transmit data 210_(0:n) and transmit clock 217 at the optimal time for capture by rotatedclock phases 233 _(0:n) and 234. Off-chip pads 207 _(0:n) are alsoconnected to receiver circuits 208 _(0:n) via connectors 231 _(0:n).Connections 2320:n connect outputs of receiver circuits 208 _(0:n) toreceive capture circuits 209 _(0:n).

For test, a bypass connection 212 _(0:n) may be provided between thedriver circuits 206 _(0:n) and the receive capture circuits 209 _(0:n)to allow for operation of the link in a “loopback” mode. Similar to thedata path, off-chip pad 216 also connects to a strobe receiver 215 viaconnection 229, and a bypass connection 218 between the strobe driver214 and the strobe receiver 215 may be provided for test. Strobereceiver 215 provides a strobe signal to delay line 221 via connection225. In-turn, delay line 221 provides multiple strobe phases 223 toreceive phase rotators 222 _(0:n). The phase rotators 222 _(0:n) areused to generate read phase clocks 224 _(0:n) that are used by receivecapture circuits 209 _(0:n) for latching data provided by the datareceivers 208 _(0:n). The read phase clocks 224 _(0:n) are also providedto the digital portion of the link for timing of receive capturecircuits 209 _(0:n) outputs 211 _(0:n) across the analog-digitalboundary.

In order to test analog link 200 in a manufacturing mode, a referenceclock frequency is provided at 201, a known data pattern is provided at210 _(0:n), and a strobe pattern is provided at 217. Each of the phaserotators 205 _(0:n), 213, and 219 are set to provide transmit clockphases 233 _(0:n) and 234 as well as system clock phase 220. Connections212 _(0:n) are selected for input to receive capture unit 209 _(0:n) andconnection 218 is selected for input into strobe receiver 215, placingthe link in a loopback test mode. Strobe receiver 215 provides a testversion of the strobe signal to delay line 221 which generates strobephases 223. Given a correct setting for read clock phase rotators 222_(0:n), clocks 224 _(0:n) will successfully latch data on bypassconnections 212 _(0:n) and provide the result on outputs 211 _(0:n)which can be checked for matching against the original data 210 _(0:n)within the digital domain. The test as described verifies the generalfunction of the PLL, phase rotators, transmit, receive and delay lineunit, however the test is not exhaustive. As each phase rotator providesthe capability for a multitude of output phases given a plurality ofinput phases and weighting options, and capture of correct data is awindowed event, the full connectivity and functionality of the phaserotator is not guaranteed; yet, the functional operation of the linkdepends on phase rotator operation. This test methodology does notisolate the phase rotators from other portions of the link.

FIG. 3 shows a phase rotator test structure 300 in accordance withaspects of the invention. In embodiments, the phase rotator teststructure 300 is comprised of a plurality of phase rotators 301 _(0:n)similar in construction to the phase rotator described in FIG. 1a . Eachphase rotator 301 _(0:n) provides an output phase 311 _(0:n) which isused in the functional mode of the link or other function. A subset ofoutput phases 311 ₀, 311 ₂, . . . . 311 _(n) are selectively connectedto first test bus 306 via switches 303 _(0:n-1) (e.g., incremented by 2)which are controlled by selection signal 302. The remaining outputphases 311 ₁, . . . . 311 _(n) are selectively connected to a separate,second test bus 307 via switches 3051:n (e.g., incremented by 2) whichare controlled by selection signal 304. Thus, in this example, a firsthalf of the plurality of phase rotators 301 _(0:n) may be selectivelyconnected to first test bus 306, and a second half of the plurality ofphase rotators 301 _(0:n) may be selectively connected to second testbus 307. The number of phase rotators connectible to (e.g., associatedwith) each test bus 306 and 307 need not be equivalent.

In aspects, select signals 302 and 304 are used and configured to selectone phase rotator at a time for connection to each of the test buses 306and 307 during manufacturing testing. Additionally, select signals 302and 304 are used and configured to isolate all phase rotators from testbuses 306 and 307, in which case the select signals 302 and 304 may beused to stabilize the test buses 306 and 307. In embodiments, test buses306 and 307 are provided as inputs to logic 308 which is configured totest the phase arrival of a signal on the first test bus 306 versus thephase arrival of a signal on the second test bus 307. In this manner,logic 308 is a compare element that is configured to compare a firstphase of a first signal provided at the first input to a second phase ofa second signal provided at the second input.

Control signal 309 is configured to provide control to logic 308. Thiscontrol may include, for example, timing control, minimum pulse widthcontrol or dead-band control, or other control as needed to finely tunethe logic function and phase testing. The output of logic 308 isprovided at output 310 for monitoring during test application. Structure300 allows for the output phase of a first selected one of phaserotators 301 _(0:n) to be compared against the phase of a secondselected one of phase rotators 301 _(0:n) with logic to ascertain thephase relationship between the two selected phase rotators. Using thisstructure, an ordered approach to phase rotator selection, phaseselection for each phase rotator, and weighting selection for each phaserotator may be used to test the plurality of phase rotators 301 _(0:n)in isolation from other transmit and receive circuits.

FIG. 4 illustrates a number of logic functions for logic 308 of FIG. 3according to aspects of the invention. The logic functions shown in FIG.4 are exemplary and non-limiting, and other logic functions, orcombinations of logic functions, may be used within the scope of theinvention. As shown in FIG. 4, signals 401 ₀, 411 ₀, 421 ₀, 431 ₀ and441 ₀ represent the phase of a phase rotator (e.g., a first one of phaserotators 301 _(0:n)) selected onto a first test bus (e.g., test bust306), and signals 401 ₁, 411 ₁, 421 ₁, 431 ₁ and 441 ₁ represent thephase of a phase rotator (e.g., a second one of phase rotators 301_(0:n)) selected onto a second test bus (e.g., test bust 307). Signals402, 412, 422, 432 and 442 depict the result of the specified logicfunction at logic 308 (e.g., AND, OR, XOR) when the phase rotators onthe first and second test buses are aligned (401 ₀,401 ₁,402), slightlymiss-aligned (411 ₀,411 ₁,412), fully miss-aligned (421 ₀,421 ₁,422),when the second test bus is stuck-0 (431 ₀,431 ₁,432), and when thesecond test bus is stuck-1 (441 ₀,441 ₁,442). Timing markers 403 and 404within FIG. 4 provide sampling points related to the first test busclock edges which may be created via a delay. Marker 403 represents asample point related to the rising/positive edge on the first test bus,and marker 404 represents a sample point related to the falling/negativeedge of the first test bus. Depending on the phase selection andweighting patterns selected for test, and the desirability of testingfor either positive edge arrival only or positive edge and duty cycle ofthe pulses, one or more logic functions may be required.

FIG. 5 depicts additional structure that may be used with the teststructure 300 of FIG. 3 in accordance with aspects of the invention.Test bus 506, test bus 507, and logic 508 of FIG. 5 correspondrespectively to test bus 306, test bus 307, and logic 308 of FIG. 3.Block 500 contains first test bus 506 and second test bus 507 which areinputs to logic 508. Logic 508 is tunable via input 509 and providesphase comparison output 510, which may be a single signal or multiplesignals. In embodiments, signal 510 is provided as the data input at adata (D) port of two latches 511 and 512. Each latch 511 and 512 isillustrated as a scannable latch as part of a scannable testmethodology, but may alternatively be non-scannable and queried throughan alternate mechanism. Input 514 to latch 511 is the scan-in (SI) portwhile input 513 to both latches 511 and 512 is the scan enable (SE)port. Both latches 511 and 512 have a reset (R) port driven from signal535 for initialization. The output 516 from the first latch 511 may beconnected to the scan-in port of the second latch 512 via connection515. Likewise, the output 517 of the second latch 512 may be connectedto the scan-in port of a further latch via connection 518.

Still referring to FIG. 5, unit 519 provides a one-shot sampling phasein a test mode on signal 520 which is inverted by inverter 521 to createan inverted one shot sampler 522. Using sample clocks 520 and 522, whichprovide the clock to latches 511 and 512 at clock ports (C),respectively, the rising and falling edge logic response from logic 508is sampled. Unit 519 uses a clock input 523 which may be connected toone of test bus 506 or test bus 507, and one-shot enable 524 in order totrigger the sampling clock. Unit 519 may also have additional control526 to provide requisite clocking in a non-sample mode, such as forscan. Unit 519 may further provide additional outputs 525.

FIG. 6 shows a flow 600 of a process in accordance with aspects of theinvention. In particular, the flow 600 is a test flow that may be usedwith the test structures 300 and 500 of FIGS. 3 and 5 and certain onesof the steps of the flow are described with respect to reference numbersused in FIGS. 3 and 5. Functionality and/or steps described in the flow600, and other flows in other figures described herein, may be drivenand/or controlled using control logic such as a BIST finite statemachine as described herein or other suitable control logic.

The flow 600 starts at step 601. At step 602, it is determined whetheror not the phase rotator test mode is active. If the phase rotator testmode is not active, then the process exits to step 626. If the phaserotator test mode has been selected, then at step 603 a phase lockedloop (PLL) which provides the clock phases to the phase rotators islocked. In an alternate embodiment, step 603 may include a provision tosource the clock into a delay line as opposed to a PLL.

Once the PLL is locked at step 603, at step 604 a selection is made of afirst phase rotator (Rot1) from a first plurality of phase rotators(e.g., phase rotators 301 _(0:n)) capable of being connected to thefirst test bus (e.g., test bus 306 of FIG. 3). At step 605, input phaseselection and weighting for the first phase rotator is set to an initialtest state. At step 606, a selection is made of a second phase rotator(Rot2) from a second plurality of phase rotators (e.g., phase rotators301 _(0:n)) capable of being connected to the second test bus (e.g., 307of FIG. 3). At step 607, the second phase rotator has its input phaseand weighting set to an initial test state that may or may not beequivalent to the setting for the first phase rotator. With both phaserotators Rot1 and Rot2 set, the process moves to step 608 where the testsequence waits for the phase rotators to phase-stabilize and forcomparison expects for the given combination of phases and weightsprogrammed into the two phase rotators to be calculated.

With continued reference to FIG. 6, when the wait time at step 608 issatisfied, the process progresses to step 609 where a sample of thelogic output is taken and then to step 610 where the sampled result iscompared against the generated expect (also called an expect value). Inthe event the sampled result does not conform to the expect, thisindicates that the test has failed, at which point the failure conditionis logged at step 611 and the test exits with failure at step 612.Alternatively, if the sampled result is in accordance with the expectedresult at step 610, then the process continues to step 613 where it isdetermined if all desired phase and weight combinations for the secondphase rotator have been tested. This set of phases and weights may be afull binary combination of all valid possibilities, or some subset whichtests connectivity of the phase rotator. If all combinations of interesthave not been tested, the process moves to step 614 where the secondphase rotator is updated for the next phase and weight combination andthe process returns to step 608. The loop through steps 608, 609, 610,613 and 614 continues until all phase and weight combinations ofinterest of the second phase rotator are tested.

Still referring to FIG. 6, when it is determined at step 613 that alldesired phase and weight combinations for the second phase rotator havebeen tested, the process moves to step 615 where it is determined iftesting is still progressing with the first phase rotator of theplurality of phase rotators connectible to the first test bus selected.In embodiments, step 615 is an optimization that allows for all “secondphase rotators” to be cycled through for only a first “first phaserotator” selection in order to save test time. Step 615 is optional, andif it is removed, step 613 would exit to step 616 instead of 615. Asshown in method 600, if it is determined at step 615 that the firstphase rotator is still at its initial setting, the process moves to step616 to determine whether all “second phase rotators” in the plurality ofphase rotators connected to the second test bus have been tested. If all“second phase rotators” have not been tested, then the process moves to617 where the “second phase rotator” under test is incremented and theprocess returns to step 607. This loop through steps 607, 608, 609, 610,613, 615, 616 and 617 may continue until all phase rotators in thesecond plurality are tested.

When it is determined at step 616 that all phase rotators in the secondplurality have been tested, the flow proceeds to step 618 where it isdetermined whether all desired phases and weights for the phase rotatorselected from the first plurality and connected to the first test bushave been tested. When step 618 is false or negative, the processcontinues to step 619 where the phase rotator selected from the firstplurality is updated to the next desired phase and weight combinationand the process returns to step 606. The loop continue through steps606, 607, 608, 609, 610, 613, 614, 615, 616, 617, 618 and 619 until alldesired phase rotator settings for the selected phase rotator from thefirst plurality have been tested against all desired phase and weightcombinations for all of the second plurality phase rotators.

When it is determined at step 618 that all desired phases and weightsfor the phase rotator selected from the first plurality and connected tothe first test bus have been tested, the process advances to step 620 todetermine whether all phase rotators from the first plurality have beentested. When step 620 is false or negative, then at step 621 the nextphase rotator in the first plurality is selected for connection to thefirst test bus and the process returns to step 605, with continuedlooping. When method 600 includes step 615, only a single phase rotatorfrom the second plurality of phase rotators is tested against each ofthe succeeding phase rotators selected from the first plurality of phaserotators. When step 615 is omitted from method 600, each phase rotatorfrom the second plurality is tested against each phase rotator from thefirst plurality of phase rotators. When step 620 is false or negative,i.e., it is determined that all phase rotators from the first pluralityhave been tested, the phase rotator test is indicated as beingsuccessful. The result is logged at step 622 and the phase rotator testexits with a pass at step 623.

In a particular embodiment of flow 600, the increment of the first andsecond plurality of phase rotators is constrained such that the firstphase rotator in the first plurality of phase rotators is only testedagainst the first phase rotator in the second plurality of phaserotators; the second phase rotator in the first plurality of phaserotators is only tested against the second phase rotator in the secondplurality of phase rotators; the third phase rotator in the firstplurality of phase rotators is only tested against the third phaserotator in the second plurality of phase rotators and so forth until allphase rotators are tested.

The number of phase and weight combinations over which a phase rotatormay be tested is quite large. For example, a phase rotator may be usedto create 128 different output phases given different combinations ofphase selection and weighting parameters. While testing all combinationsof phase rotator phase and weight selection may be exhaustive,connectivity and functionality verification may be accomplished with amuch smaller set of patterns which target phase selection and weightindividually to insure that each phase selection and each weightselection is tested at least once in the pattern set. In order tooptimize pattern selection, steps 613 and 614 included in step subgroup624 and similarly setups 618 and 619 included in step subgroup 625 maybe expanded into the flow shown in FIG. 7.

FIG. 7 shows a method flow 700 in accordance with aspects of theinvention. Group 724 of FIG. 7 shows an exemplary implementation of thesteps of groups 624 and 625 of FIG. 6. Group 724 begins at step 701where the results of the previous sample were found to match theirexpect values. Steps 702 and 703 of group 724 represent determiningwhether the phase selection and weight selection components of the phaserotator setting from step 701 had previously been tested. This isperformed since the phase output of the phase rotator is a combinationof both parameters, such that testing the phase rotator fully mayinvolve testing at least one of the phase or weight more than once. Whenthe phase and/or weight of the passing combination has not been testedpreviously, they are marked off as complete at steps 704 and 705respectively and the process moves to step 706. Alternatively, if thephase and or weight has been tested previously, mark-off is notperformed and the process moves directly to step 706.

At step 706, it is determined whether all valid weights have beentested. If all valid weights have not been tested, the process moves tostep 707 where the phase rotator is updated by a non-binary number ofsteps, e.g., 5, 9, 17, 33, etc. This by definition will advance both thephase selection and weight selection of the phase rotator. After step707, the process 700 exits at step 711 which corresponds to step 608forward of process flow 600 of FIG. 6. On successful test compare thelarger process 600 would move to step 701 (via path 712) with successfulcompare at step 610. This loop would continue until all valid weightswere tested. For example, for a phase rotator with eight unique weightsettings, the process may flow through step 707 seven times.

Still referring to FIG. 7, when the result of step 706 indicates thatall weights have been tested, the process moves to step 708 where it isdetermined if all valid phase pair selections for the phase rotator arecovered. If coverage is incomplete, the process moves to 709, the phaserotator is updated to cover the next untested phase pair at any weightcombination and the process returns to step 711. For a phase rotatorwith 16 valid phase pair selections, process 700 will move through step709 fewer than 15 times as some of the phase-pairs were tested in theinner loop through step 707. Once all phase pairs have been tested,process 700 exits through step 710 to either the step following process600 group 624 for the “second phase rotator” or the step followingprocess 600 group 625 for the “first phase rotator”. The steps of flow700 may be implemented at least partly as logic, as firmware, or as apre-defined table of phase pairs and weight combinations to be tested.

FIGS. 8a, 8b, and 8c show an example that illustrates process 700 ofFIG. 7 in accordance with aspects of the invention. FIG. 8a shows validphase pairs 801 for a phase rotator capable of generating 128 outputphases using 16 incoming phases and 8 weight settings. As illustrated inFIG. 8a , there are 16 valid combinations of input phase pairs which aretested in order to insure that all phases are physically connected tothe phase rotator circuit and that the selection circuitry isfunctioning as expected.

FIG. 8b shows a table 802 illustrating the effect of the weightingparameter on output phase over two consecutive phase pairs. This exampleis not intended to be limiting, and other combinations of phase paircounts, weighting counts and decodes may be used while not departingfrom the scope of the invention.

FIG. 8c shows a condensed set 803 of phase pair and weight combinationscycled through during phase rotator test as calculated for non-2^(n)increment value of nine. This example is not intended to be limiting,other increment values are possible, and different increment values willprovide differing numbers of patterns. For the example of FIG. 8c , nineiterations (zero through eight) of phase-pair and weight are used tofully test the weighting functionality. Because testing of the weightsalso tests nine phase-pair combinations, only seven additionalphase-pair/weight combinations are used to test the remaining phasepairs. As a result, only sixteen combinations are used to testconnectivity of the phase rotator versus 128 for the fully exhaustivecase. In addition, the increment by nine separates the phases in any twoconsecutive test vectors significantly, removing measurementdifferentiation uncertainty. Using the above method with a differentincrement value, incrementing by 33 would use 20 patterns andincrementing by 5 would use 19 patterns, both of which are larger thanthe increment-by-9 value due to smaller coverage of phase-pairs duringweight testing.

FIG. 9 shows a test structure 900 in accordance with aspects of theinvention. In particular, FIG. 9 illustrates elements of structures 300and 500 of FIGS. 3 and 5 embedded within a larger mixed-signal structure900. In embodiments, a built-in-self-test (BIST) 915 is included instructure 900 and forms a wrapper around analog sub-unit 914 whichcontains structure 920. In aspects, structure 920 contains phaserotators 901 _(0:n), first and second test buses 906 and 907, selectionswitches 903 and 905, logic 908 and logic output 910, which may besimilar to those elements described in structure 300 of FIG. 3. Latch916 within the BIST 915 may be similar to latch 511 or 512 of FIG. 5.

In aspects, BIST 915 supplies control and/or tuning signals 909 to thetest logic 908 as well as phase rotator phase and weight selectionsignals 9120:n to each of the phase rotators 901 _(0:n). In embodiments,BIST 915 also supplies select controls 902 and 904 which select phaserotator outputs onto the first test bus 906 and second test bus 907.BIST 915 may contain multiplexers 917 _(0:n) that select betweenfunctional mode phase and weight settings 919 _(0:n) and test mode phaseand weight settings generated within the BIST 915. BIST 915 may alsohave a BistEnable input 918 for selecting phase rotator test, e.g., testmode. Rotator phase inputs 913 are common to all phase rotators 901_(0:n) being tested, are dependent on phase rotator type, and may besourced from a multi-phase PLL or delay line within analog unit 914. Thestructure 900 allows testing of phase rotators 901 _(0:n) with verylittle external overhead and/or complexity of the tester.

FIG. 10 shows a phase rotator structure 1000 in accordance with aspectsof the invention. Elements and signals 1001-1010 of structure 1000 aresimilar to elements and signals 101-110 of structure 100 of FIG. 1,respectively. In embodiments, structure 1000 further includes input1011, logic element 1012, and output 1013. Input 1011 is a test enablesignal. Logic element 1012 is a signal gating structure, such as an ANDgate for example, that only passes the rotated signal 1010 to output1013 when test enable 1011 is asserted. Output 1013 is a dedicated testoutput for connection to one of the phase rotator test buses (e.g.,buses 306 and 307) while output 1010 is used as the functional clock foruse by transmit or receive units.

In aspects, structure 1000 allows for a reduction in load on thefunctional clock and a reduction in power in a functional mode.Structure 1000 separates the timing and loading concerns for functionaldesign from those of test design. In embodiments, structure 1000 doesnot test output 1010 beyond the input connection to unit 1012, which mayalso be the case for structure 300 of FIG. 3 where outputs 311 are nottested beyond switches 303 and 305. This is not a concern, however, asoutput 1010 may be tested as part of the loopback test described inreference to FIG. 2. The depicted waveform of output 1013 illustratesthat the waveform of output 1010 is only propagated on output 1013 whenthe enable signal 1011 is asserted. The logic function 1012 and enablesignal 1011 polarity may be changed without departing from the scope theinvention. As but one example, unit 1012 may be implemented as a NANDgate that inverts signal 1010 when selected. Block 1012 could alsoincorporate the switch/select function (e.g. switches 303).

FIG. 11 shows an embodiment of a test structure 1100 in accordance withaspects of the invention. Structure 1100 includes elements and signals1101-1107 and 1111 that correspond to (e.g., are the same as) elementsand signals 301-307 and 311 of structure 300 of FIG. 3, respectively. Inembodiments, structure 1100 includes a phase detector 1108 as thecompare element instead of a logic element (e.g., logic 308 of FIG. 3).Use of phase detector 1108 as the compare element provides improvedtesting accuracy and/or additional test information. The phase detector1108 may be an analog phase detector or a bang-bang phase detector andmay include inputs 1109 which may, among other things, determine thesensitivity or dead-band of the detector 1108. While shown as a singleoutput, pass/fail indicator 1110 may be a single signal or multiplesignals. Phase detector 1108 may be used as a replacement for the logicunit described above in which case the lock condition for any givenfirst phase rotator phase and weight versus any given second phaserotator phase and weight can be predicted. Phase detector 1108 may beused in combination with increment/decrement logic in order to phasealign a second phase rotator relative to a first phase rotator withphase/weight comparison as a pass/fail criteria, as described in greaterdetail with respect to FIG. 27.

FIG. 12 shows an embodiment of a test structure 1200 in accordance withaspects of the invention. Structure 1200 includes elements and signals1201-1207 and 1211 that may be similar to corresponding elements andsignals 301-307 and 311 of structure 300 of FIG. 3, respectively. Inembodiments, first test bus 1206 is limited in connection to only onephase rotator 1201 ₀ instead of larger number of phase rotators as inFIG. 3. Switch 1203 ₀ is optional and may be provided to equate timingwith second test bus 1207 that is connected using switches 1205 _(1:n)to service phase rotators 1201 _(1:n). If switch 1203 ₀ is removed fromstructure 1200, switch select control 1202 may also be removed.Additionally, switch select 1204 is configured to control all n−1switches which gate phase rotator outputs 1211 _(1:n) onto second testbus 1207. Compare element 1208 of structure 1200 may be logic (e.g.,similar to logic 308 of FIG. 3) or a phase detector (e.g., similar tophase detector 1108 of FIG. 11). Structure 1200 may be used to optimizetest flow as only a single phase rotator 1201 ₀ with its output 1211 ₀is used as the test standard for all other phase rotators 1201 _(1:n)under test.

FIG. 13 shows a flow 1300 of a process in accordance with aspects of theinvention. In particular, the flow 1300 is a test flow that may be usedwith the test structure 1200 of FIG. 12 and certain ones of the steps ofthe flow are described with respect to reference numbers used in FIG.12. Flow 1300 is similar to flow 600 described with respect to FIG. 6with at least one exception that the outer most loop is removed (e.g.,the outermost loop that queries the test status to determine whether allphase rotators in the plurality available for connection to the firsttest bus are have been tested and, if not, increments the phase rotatorselected onto the first test bus). The loop reduction is the result offirst test bus 1206 of structure 1200 being associated only with phaserotator 1201 ₀ as depicted in FIG. 12. As a result, steps 1301-1303,1305-1314, 1316-1319, and 1322-1326 may be performed in a manner similarto steps 601-603, 605-614, 616-619, and 622-626 of FIG. 6.

FIG. 14 shows a flow 1400 of a process in accordance with aspects of theinvention. In particular, the flow 1400 is a test flow that may be usedwith the test structure 1200 of FIG. 12 and certain ones of the steps ofthe flow are described with respect to reference numbers used in FIG.12. The process starts at step 1401. At step 1402, it is determined ifthe phase rotator test mode is active/initiated. If the phase rotatortest is not active, the phase rotator test process is exited at step1420. Alternatively, if the phase rotator test is in progress, the PLLis locked at step 1403 and the first phase rotator which is connected tothe first test bus (e.g., bus 1206 of FIG. 12) is set to a first phaseand weight condition at step 1405.

At step 1406, all second phase rotators, i.e. in the plurality of phaserotators connectible to the second test bus 1207 of FIG. 12, are set toan identical first phase and weight condition that may or may not beequivalent to the first phase and weight condition of the first phaserotator. As such the plurality of second phase rotators should have thesame phase output at step 1406. With the second phase rotators set up,one of the second phase rotators is selected onto the second test bus1207 at step 1407 and the process enters a wait state 1408 to allow theplurality of second phase rotators to settle into the selected phase.During step 1408, the predicted expect value is generated for the givenrelative phase/weight set point of the first phase rotator relative tothe second phase rotator. When step 1408 completes, the logic or phasedetector (e.g., compare element 1208) output that checks the relativephase positions of the first and second phase rotators is sampled atstep 1409.

At step 1410, the sample from step 1409 is checked against the expectvalue from step 1408. If the sample does not match the expect value, theprocess moves to step 1411 where the fail is logged and process exits at1412 with a failure. Alternatively, if the sample matches the expectvalue, the process moves to step 1413 where it is determined if allsecond phase rotators within the plurality of second phase rotators havebeen tested at the current phase and weight setting. If the entireplurality has not been tested, the process moves to step 1414 where thenext second phase rotator in the plurality of phase rotators connectibleto the second test bus is selected and the process moves either tooptional step 1415, which provides for a wait state, or directly to 1409where sampling of the compare between the first phase rotator phase, andthe latest second phase rotator phase occurs. The loop through steps1409, 1410, 1413, 1414 and optionally step 1415 continues until allsecond phase rotators in the plurality have been tested at the phase andweight selected at step 1406.

Wait state at step 1415 may be utilized in some implementations. As anexample, when compare element 1208 is a piece of combinational logic,the result should be the same at every phase rotator cycle, and the waitprovided at step 1408 would be sufficient. However, when compare element1208 is a phase detector, it may take multiple phase rotator cycles todetermine whether the first and second phase rotators are locked. Whilestep 1408 provides this time for the initial second phase rotatorselection, wait state at step 1415 may be used to test any increment ofthe second phase rotator by step 1414.

Still referring to FIG. 14, after all second phase rotators have beentested at the phase and weight condition set in 1406, step group 1424which includes steps 1416 and 1417 is used to determine if all desiredphase and weight combinations for the second phase rotators have beentested. If not, the next phase and weight combination is provided to allsecond phase rotators in the plurality and the process returns to step1407. The loop through 1407, 1408, 1409, 1410, 1413, 1414, 1415, 1416and 1417 continues until the plurality of second phase rotators has beentested at all desired phase and weight combinations against the firstphase rotator weight set in 1405. Step group 1424 may be implemented ina manner similar to that described in process 700 of FIG. 7.

With continued reference to FIG. 14, when step 1416 is true or positive,the process moves to step group 1425 that includes steps 1418 and 1419.The functions of step group 1425 may be implemented in a manner similarto process 700 of FIG. 7, but with checking to ensure that all desiredphase and weight combinations for the first phase rotator have beentested. If all combinations have not been tested, the next phase andweight setting in the group of settings to be tested for the first phaserotator is selected, and the process returns to step 1406, where uponthe inner test loop which checks all second phase rotators at alldesired phase and weight combinations against the current first phaserotator phase and weight setting is repeated. Once all first phaserotator phases and weights are covered, the process exits to step 1421where the successful test condition is logged, followed by step 1422which is the phase rotator test exit with pass result.

FIG. 15 shows an embodiment of a test structure 1500 in accordance withaspects of the invention. Structure 1500 includes elements and signals1501-1511 that may be similar to corresponding elements and signals1201-1211 of structure 1200 of FIG. 12, respectively. In embodiments,first phase rotator 1501 ₀ with phase output 1511 ₀ is only connectibleto second test bus 1507 via switch 1505 ₀, while switch control 1504controls the selection from the plurality of phase rotators under test.The frequency/phase source for first test bus 1506 is provided by source1512 with optional switch 1503 ₀ and control 1502. Phase/frequencysource 1512 may be provided from off-chip or from another on-chipsource. The phase relationship between source 1512 and phase clocksgenerated as inputs to each of the phase rotator 1501 _(0:n) is known inorder to generate result prediction. Switch 1503 ₀ with control 1502 maybe optionally provided to disable/stabilize unit 1508 in non-phaserotator-test modes.

FIG. 16 shows a flow 1600 of a process in accordance with aspects of theinvention. In particular, the flow 1600 is a test flow that may be usedwith the test structure 1500 of FIG. 15 and certain ones of the steps ofthe flow are described with respect to reference numbers used in FIG.15. Flow 1600 is similar to flow 1400 of FIG. 14 with at least oneexception that, because phase rotator 1501 ₀ is part of the plurality ofphase rotators connectible to the second test bus 1507, there is no needto initialize the phase and weight selection for the first phaserotator. The process starts at 1601. At step 1602, it is determined ifthe phase rotator test mode is active/initiated. If the phase rotatortest is not active, the phase rotator test process is exited at step1620. Alternatively, if the phase rotator test is in progress, theinitial clock source phase is set at step 1603 and the PLL is locked atstep 1605.

At step 1606, the plurality of second phase rotators is set to a firstphase and weight setting such that each phase rotator in the pluralityshould have identical output phase. At step 1607, a first phase rotatorin the plurality of second phase rotators is connected to the test bus.At step 1608, phase settling and expect value generation is performed.In the loop comprised of steps 1609, 1610, 1613, 1614 and optionallystep 1615, checking of each phase rotator in the plurality at a fixedphase and weight setting is performed, in accordance with thedescription provided in reference to flow 1400 in FIG. 14. Further steps1616 and 1617 provide additional looping to verify functionality at thefull set of phases and weights desired for the plurality of second phaserotators.

At step 1618, it is determined if any additional input phases beyondthat set in step 1603 are required for test of phase rotators 1501_(0:n). If additional phases are required, the next phase is set up atstep 1619 and the PLL is re-locked at step 1605. This loop continuesuntil all clock source phases of interest are tested. Once all firstphase rotator phases and weights are covered, the process exits to step1621 where the successful test condition is logged, followed by step1622 which is the phase rotator test exit with pass result.

In embodiments of flow 1600, the external clock phase is the clock phaseused for PLL reference (or alternatively a delay line reference). Thisenforces a known relationship between the phase inputs to phase rotators1501 _(0:n) and the expected phase outputs 1511 _(0:n) from the phaserotators. If the external clock phase is not used to lock the PLL, atest flow is still possible in which step 1619 loops to step 1606 andthe phase relationship between the test clock reference 1512 connectedto first test bus 1506 and the phase inputs to phase rotators 1501_(0:n) is determined in order to provide result prediction.Alternatively, a method of phase lock testing, such as that describedwith respect to FIG. 27, may be used. Steps 1618 and 1619 are optional.Given that at successful exit of step 1616, both the phase and weightconnections/functionality have been verified for the plurality of phaserotators under test; therefore, additional phases to test against maynot be required.

FIG. 17 shows an embodiment of a test structure 1700 in accordance withaspects of the invention. Structure 1700 includes elements and signals1701-1711 that may be similar to corresponding elements and signals1201-1211 of structure 1200 of FIG. 12, respectively. In embodiments,switch 1703 ₀ is configured to selectively connect a reference PLLfeedback phase 1713 output from PLL 1712 to first test bus 1706. PLLfeedback phase 1713 is further connected to a test phase rotator 1714used to alter a feedback phase 1715 provided to an input of the PLL1712. Control lines 1716, which may be controllable externally or from aBIST structure, such as BIST 915 of FIG. 9, may be used to alter thephase of the feedback and therefore shift the phase of the feedbackphase 1713 which is provided for comparison on first test bus 1706. PLLinput 1711 is a reference clock. Whereas reference clock 1511 of FIG. 15uses a phase shift in order to test phase rotators 1501 _(0:n) atmultiple phases, phase movement of reference 1711 is not required sinceshifting of the reference clock is provided via phase rotator 1714. Testof phase rotator 1714 may be omitted as part of the phase rotator testdescribed, but may be part of a PLL lock test which preferably isconducted prior to any phase rotator testing.

FIG. 18 shows a flow 1800 of a process in accordance with aspects of theinvention. In particular, the flow 1800 is a test flow that may be usedwith the test structure 1700 of FIG. 17, e.g., to test phase rotators1701 _(0:n), and certain ones of the steps of flow 1800 are describedwith respect to reference numbers used in FIG. 17. In aspects, steps1801, 1802, 1805-1817, 1820-1822 may be performed in a manner similar tocorresponding steps 1601, 1602, 1605-1617, 1620-1622 of flow 1600 ofFIG. 16.

In embodiments, step 1818 includes determining whether or not alldesired PLL phase rotator settings have been tested, and step 1819includes advancing the PLL phase rotator setting to the next desiredvalue. Because structure 1700 of FIG. 17 is dependent on the PLL 1712,step 1819 exits to step 1805 in order to re-lock the PLL 1712. Steps1818 and 1819 are optional, as successful exit from step 1816 guaranteesthat at minimum all phase input connections and all weight inputconnections, as well as expected functionality for the plurality ofphase rotators has been tested.

FIG. 19 shows a test structure 1900 in accordance with aspects of theinvention. Structure 1900 is a mixed-signal structure including a BIST1915 is forms a wrapper around analog sub-unit 1914. Analog sub-unitincludes 1914 phase rotators 1901 _(0:n) that may be the same as phaserotators 901 _(0:n) of structure 900 of FIG. 9. BIST 1915 includesmultiplexers 1917 _(0:n) that may be the same as multiplexers 917 _(0:n)of structure 900 of FIG. 9. Signals 1911-1913, 1918, and 1919 depictedin FIG. 19 may be the same as or similar to signals 911-913, 918, and919 depicted in FIG. 9, respectively.

In embodiments, analog sub-unit 1914 includes a plurality of logic/phasedetector units elements 1908 _(0:n), each of which may be the same as orsimilar to element 908 of structure 900 of FIG. 9. Each instance ofelements 1908 _(0:n) is dedicated to one instance of phase rotators 1901_(0:n). All instances of elements 1908 _(0:n) share commoncontrol/tuning 1909 provided by BIST 1915 and a common first test busconnection 1920. In this manner, each phase rotator 1901 _(0:n) istested against a common clock reference. In structure 1900, all phaserotators 1901 _(0:n) are tested in parallel, reducing looping time atthe expense of additional hardware. The results of testing the phaserotators 1901 _(0:n), indicated at outputs 1910 _(0:n), are stored inlatches 1916 _(0:n), which may be similar to latch 916 of FIG. 9.

FIG. 20 shows a flow 2000 of a process in accordance with aspects of theinvention. In particular, the flow 2000 is a test flow that may be usedwith the test structure 1900 of FIG. 19, e.g., to test phase rotators1901 _(0:n), and certain ones of the steps of flow 2000 are describedwith respect to reference numbers used in FIG. 19.

In embodiments, flow 2000 is drawn for a case in which the commonreference 1920 is one of the plurality of phase rotators under test,e.g., as in structure 1200 of FIG. 12. The process starts at 2001. Atstep 2002, it is determined if the phase rotator test mode isactive/initiated. If the phase rotator test is not active, the phaserotator test process is exited at step 2020. Alternatively, if the phaserotator test is in progress, the PLL is locked at step 2003 and thephase and weight of the phase rotator connected to the first test bus isset to a first value at step 2005. All remaining phase rotators are setto a common phase and weight at step 2006.

At step 2007, phase rotator settling occurs during a wait state andexpects (e.g., expected values) are generated. Steps 2009 and 2010sample the checking result and compare it to the expect value from step2007. Steps 2009 and 2010 are done in parallel for each unique phaserotator 1901 _(0:n) and sampler 1908 _(0:n) pair. As long as the resultmeets expectations, the process will move to step 2016 where it isdetermined whether all phase and weight combinations desired for testhave been covered. If they have not been covered, then at step 2017 allphase rotators not used as common reference 1920 are incremented and theloop through step 2007 will repeat until all combinations are tested.The parallel checking of all phase rotators eliminates an inner loop inthe flow. As in prior flows (e.g., flow 1800) sub-group 2024 may beimplemented in the manner described with respect to flow 700 of FIG. 7.

Successful exit from step 2016 is followed by optional execution ofsteps 2018 and 2019 which check and increment the clock source providingthe reference to input 1920 within structure 1900. When the source isone of the plurality of phase rotators under test, this loop is used totest all desired combinations of phase and weight for the first phaserotator generating the input 1920. If, on the other hand, input 1920 issourced externally or from a PLL, e.g., as illustrated in FIG. 17, thesesteps may be omitted. Alternatively, the tests increment targets andprocess forwarding may be adapted to that illustrated in either of FIGS.16 and 18 for the outermost loop.

FIG. 21 depicts a pattern set for a phase rotator test illustratinglogic function testing of the phase comparison result in accordance withaspects of the invention. As depicted in FIG. 21, a first clock sourceis compared against a second clock source. The first clock source may beprovided by a phase rotator, an external source, or a PLL. The secondclock source may be provided by a phase rotator under test using a firstpattern type which is expected to provide phase alignment between thefirst and second clock sources. A second pattern type may also beprovided to the phase rotator under test, the second pattern type beingexpected to provide 180° phase misalignment between the first and secondclock sources.

FIG. 21 illustrates two tests for the first pattern type “Aligned Test(AND)” and “Aligned Test (XNOR)”. FIG. 21 illustrates an AND test forthe second pattern type in two configurations: a first where thepositive pulse of signals {2101 ₀, 2111 ₀, 2121 ₀, 2131 ₀, 2141 ₀, 2151₀} is nominally earlier than that of signals {2101 ₁, 2111 ₁, 2121 ₁,2131 ₁, 2141 ₁, 2151 ₁}; and a second where the positive pulse ofsignals {2101 ₀, 2111 ₀, 2121 ₀, 2131 ₀, 2141 ₀, 2151 ₀} is nominallylater than that of signals {2101 ₁, 2111 ₁, 2121 ₁, 2131 ₁, 2141 ₁, 2151₁}. Timing markers 2180 and 2190 show trigger points relative to therising and falling edges of first clock sources {2101 ₀, 2111 ₀, 2121 ₀,2131 ₀, 2141 ₀, 2151 ₀} that are used to sample logic outputs {2102,2112, 2122, 2131, 2142, 2152}. The patterns in FIG. 21 depictdifferentiating a pair of clock sources that are properly aligned frompulses which are partially misaligned, fully misaligned, or have one ormore nodes stuck. The diagramming of FIG. 21 covers the case in whichthe second clock source {2141 ₁, 2151 ₁} is stuck. When either of firstclock source {2141 ₀, 2151 ₀} are stuck, the sampling mechanism, whichfor this example is based on the first clock source, does not operateand the result is detectable as long as the sampling latches were resetto known, non-passing values prior to the test sample.

FIGS. 22a-i show tables based on analysis of the waveforms of FIG. 21 inaccordance with aspects of the invention. FIGS. 22a-i show ninescenarios for various logic tests and edges on which to perform thetest. All of the testing scenarios illustrated provide an identicalresult for either the properly aligned case, or the first of twoslightly misaligned cases. The degree to which a slightly misalignedcase produces a sample value equivalent to the fully aligned case is adesign item related to the placement of the sampling point relative tothe first reference clock and the amount of misalignment acceptable inthe test. A solution for manufacturing testing with reasonable limits ispossible to construct. For example, at least one of tuning, control, andexpect generation may account for some degree of uncertainty when phasesare at or near expected alignment, and the pattern set may be augmentedto ascertain acceptance. In all but FIG. 22e and FIG. 22f , the alignedand slightly-misaligned cases can be differentiated from other failingcombinations. FIG. 22e and FIG. 22f provide erroneous passing signaturesand should be omitted from use in logic testing. A viable alternative isFIG. 22b , which tests using only AND at the rising edge.

FIG. 23 shows a flow 2300 of a process in accordance with aspects of theinvention. In particular, the flow 2300 is a test flow that may be usedwith the test structure 300 of FIG. 3 by applying testing as depicted inone or more of FIGS. 21 and 22 a-i. Certain ones of the steps of flow2300 are described with respect to reference numbers used in FIG. 3. Theflow starts at step 2301. At step 2302 it is determined if the phaserotator test mode is initiated/active. If the phase rotator test mode isnot initiated, the process ends at step 2326. If the phase rotator testmode is initiated, the process moves to step 2303 where the PLL islocked. At step 2404, one phase rotator (e.g., first phase rotator Rot1)of a first plurality of phase rotators connectible to the first test busis connected to the test bus. At step 2305, input phase selection andweight selection for first phase rotator is made. At step 2306, thephase and weight selection used for first phase rotator is set for theplurality of phase rotators which may be selected for connection to thesecond test bus.

At step 2307, one phase rotator (e.g., second phase rotator Rot2) of thesecond plurality of phase rotators which may be selected for connectionto the second test bus is connected. At step 2308, a wait state forphase rotator settling and expect generation occurs. At step 2309, thesample of the comparison result for the phases of first and second phaserotator is made. At step 2310, the result of step 2309 is checkedagainst the expect value of step 2308. If the result of step 2310 ispositive or true, i.e., if the test passes, then at step 2313 a check isperformed to insure that all phase rotators in the second plurality havebeen poled at the current phase and weight setting. At step 2314, thesecond phase rotator (Rot2) in the second plurality phase rotators isincremented. At step 2315, an optional wait is performed. The loopthrough steps 2314, 2323, 2309, 2310 and 2313 continues until all of thephase rotators in the second plurality phase rotators are polled. Step2315 may be provided dependent on the type of sampler used and settlingrequirements. Successful completion of this loop completes the AND test(or alternatively a phase detect test) with aligned phases.

When the result at step 2313 is true or positive (e.g., “Yes”), then atstep 2316 the second plurality of phase rotators are checked for havingbeen tested for both 0 degree and 180 degree response (the setup in 2306provides the 0 degree response). If the 180 degree response has not beentested, then at step 2317 the phase and weight are set to place thesecond plurality of phase rotators in 180 degree phase misalignmentrelative to the first phase rotator and the process loops back to step2307. Successful completion of this loop completes an AND test (oralternatively a phase detect test) in the fully misaligned condition.

A true or positive result at step 2316 indicates completion of the 0degree and 180 degree modes, after which the flow proceeds to step 2318where the first phase rotator is checked to determine if all desiredphase and weight combinations have been tested. A negative resultforwards the process to 2319 where the next phase/weight setting isprogrammed, and then a loop beginning at 2306 is started. Successfulcompletion of this loop insures that all phase-pair selects and allweight selects for the first phase rotator, and therefore for the secondplurality of phase rotators is tested. Steps 2318 and 2319 may beperformed in accordance with the flow 700 of FIG. 7.

When the result at step 2318 is true or positive, then at step 2320 acheck is performed to ascertain whether all of the phase rotators in thefirst plurality have been tested. A negative result forwards the processto step 2321 where the next phase rotator in the first plurality isselected as the first phase rotator (Rot1) and the process loops back tostep 2305. Looping continues until coverage is provided for all phaserotators in the first plurality of phase rotators. When the result atstep 2320 is true or positive, then at step 2322 the conditions arelogged and at step 2323 the test ends with a pass.

FIG. 24 shows a flow 2400 of a process in accordance with aspects of theinvention. In embodiments, flow 2400 is a truncated version of flow 2300of FIG. 23. In this case, the outer-most loop through steps 2320 and2321 of FIG. 23 is dropped because the first plurality of phase rotatorsis reduced to a single phase rotator. In other aspects, steps 2401-2419,2422, and 2423 of flow 2400 are performed in the same manner as steps2301-2319, 2322, and 2323 of flow 2300 of FIG. 23. Truncated flowssimilar to flow 2400 may also be constructed for a simplified patternset handling for any of structure 1500 of FIG. 15, structure 1700 ofFIG. 17, and structure 1900 of FIG. 19.

FIG. 25 illustrates measurement uncertainty regions which may occur incomparison of two mismatched phases with logic (rather than a phasedetector), similar to the diagramming provided in FIGS. 21 and 22 a-i.In any real system there is some amount of uncertainty as to when anincoming edge from a phase rotator arrives. The uncertainty may be dueto noise, jitter, loading, time-of-flight, etc., as well as someuncertainty as to the logic delay inherent in the sampler. Regions 2514,2515, 2524, 2525, 2534, 2535, 2544, 2545, 2554 and 2555 in FIG. 25illustrate regions of uncertainty. In a system where the sampling pointis referenced to one of the two phases under test (e.g., 2511, 2521,2531, 2541, 2551), any uncertainty in the phase used for sampling ismanageable, as the variance in logic delay can be used as a factor inplacing the sampling edge relative to the incoming phase.

Uncertainty in the arrival of the second of two phases under test (2512,signal 2522, 2532, 2541, 2552) may cause sampling issues dependent onthe relative difference between the first phase and the second phase.Considering group 2510 where signals 2511 and 2512 are 90 degrees out ofalignment with signal 2512 leading signal 2511, a sampling point 2501related to the rising edge of signal 2511 and a sampling point 2502related to the falling edge of signal 2511 can be found that does notincur an uncertainty region for the second phase signal 2512.

Still referring to FIG. 25, group 2520 shows the situation where signal2522 leads signal 2521 by less than 90 degrees and the uncertaintyregions begin to merge; however, because the signal 2521 is still laterthan the signal 2522 edge, a valid sampling point outside theuncertainty region can be found. This continues in group 2330 wheresignal 2531 and signal 2532 are aligned. Continuing to push the secondphase later in time in group 2540, it is seen that the uncertaintyregion associated with the second phase conflicts with the samplingpoint, and one is unsure what the measured result of a signal 2543 wouldbe under these conditions. Moving the second phase edge even furtherright as shown in group 2550, there is a condition where again samplingpoints 2501 and 2502 have no conflict with an uncertainty region. Giventhe delays, jitter, process variation, noise, circuit delay, etc., thereis a set of phase relationships or offsets between the first phase(Phase 1) and the second phase (Phase 2) where a detection system isexposed to uncertainty in measurement. Aspects of the invention use aphase detector or a hybrid method to handle such uncertainty.

FIG. 26 shows a flow 2600 of a process in accordance with aspects of theinvention. In particular, the flow 2600 depicts processes in whichexpect prediction and sampling circuits are set up to operate in a firstlogic detection mode when the phases are separated so as not to haveuncertainty risk, and in a second edge detection mode when phaseseparation indicates a measurement uncertainty does exist. Flow 2600starts at step 2601. At steps 2602 and 2603, the phase and weightsettings for each of the phase rotators being tested are queried. Atstep 2604, the phase setting information from steps 2602 and 2603 iscompared. At step 2605, it is determined whether a desired position ofthe second phase relative to the first phase (the sampling phase) issubject to uncertainty. Step 2605 may be performed by determiningwhether the second phase is in an uncertainty zone in a manner similarto that described with respect to FIG. 25.

When it is determined at step 2605 that the second phase is not in anuncertainty zone, then at step 2606 an expect value is generated basedon the logic type and pattern type, the sampler is placed in logic testmode at step 2607, and the sample commences at step 2608. In this mode,the patterning machine can operate with larger steps in phase to sampleacross regions where uncertainty does not exist.

When it is determined at step 2605 that the second phase is in anuncertainty zone, then at step 2609 it is determined whether the testengine is in logic mode or edge detection mode. If the test engine isnot in edge detection mode, the expected edge direction is computed atstep 2611 based on present phase, logic type and pattern type, and themachine is configured for edge detection mode at step 2612. Edgedetection mode may entail setting up the logic to look for a specificedge type and may further reduce the phase stepping increment to providea search. After step 2612, the process proceeds to step 2608 in whichthe machine is returned to do the sample in edge detect mode.

When it is determined at step 2609 that the machine is already inedge-detect mode, then at step 2610 it is determined if the edge hasalready been detected. If the edge has been detected, the processproceeds to step 2606 since it is safe to return the machine to logictest mode and more course stepping. If, however, the expected edge hasnot been detected, then the process proceeds to step 2612 where edgedetect mode is maintained.

FIG. 27 shows a flow 2700 of a process in accordance with aspects of theinvention. In particular, the flow 2700 illustrates a process that canbe used for phase rotator test when a phase detector is used as thedetection element, e.g., when a phase detector is used as element 1708in FIG. 17. The process starts at 2701. At step 2702 it is determinedwhether the phase rotator is in test mode. When the phase rotator is notin test mode, the process ends at step 2720. When the phase rotator isin test mode, then at step 2703 an initial phase setting for the PLL(e.g., PLL 1712 of FIG. 17) is selected. At step 2705, the PLL locks ona phase that will be used as the first test bus phase in structure 1700of FIG. 17. At step 2706, a phase rotator (second phase rotator Rot2) isselected from the plurality of phase rotators (second plurality) whichmay connect to the second test bus (e.g., bus 1707 of FIG. 17).

At step 2707, the second phase rotator is set to a phase and weightwhich are expected to produce an “unlock” indicator in the phasedetector. In aspects, the positioning of the initial phase and weightfor the second phase rotator are chosen such that multiple iterations ofa stepping algorithm must occur before lock. As an example, the initialset point may be chosen such that the phase rotator has to advance 350degrees to achieve lock.

At step 2708, the phase detector is enabled followed by a wait period atstep 2709 to allow the phase detector to achieve a valid output.Following step 2709, the lock indicator is queried at step 2710. When itis determined at step 2710 that the system is unlocked, then at step2713 the number of iterations through the lock loop is queried. Giventhe beginning position of the second phase rotator relative to the phaseon the first test bus, a limited amount of iterations are used to lockthe phase rotator to the first test bus phase. If the limit is exceededat step 2813, then at step 2811 a fail is logged and the test processends at step 2712. If, however, the maximum number of iterations has notbeen exceeded at step 2713, then at step 2714 the phase select andweight for the second phase rotator is updated as part of a lockalgorithm, which may be within a functional lock algorithm. The stepsequence in the algorithm need not be linear.

After step 2714, the process forwards to step 2709 for a wait state inorder to allow the phase detector to evaluate the new phase for lockprior to sampling at step 2710. The loop through steps 2709, 2710, 2813and 2814 continues until the number of iterations is exhausted or untillock is achieved at step 2710. Once lock is achieved, the processproceeds to step 2715 where the phase-pair and weight selection for thesecond phase rotator which yields the lock is queried against theposition of the reference phase on the first test bus. If the parametersof the second phase rotator are within error bounds, the processforwards to step 2716; however, if the parameters are outside the errorbounds, the process forwards to steps 2711 and 2712 for error loggingand test exit. An example is an immediate lock prior to initiating thelocking loop, notwithstanding an initial parameter setup for the secondphase rotator which precluded lock at step 2710.

Still referring to FIG. 27, when the result at step 2715 is positive ortrue, the process proceeds to step 2716 where it is determined whetherall the plurality of phase rotators connected to the second test bushave been tested. If the result at step 2716 is negative or false, theprocess forwards to step 2717 where the next phase rotator is selectedas the second phase rotator and the locking loop repeats. If the resultat step 2716 is positive or true, the process forwards to an optionalloop 2725 that includes steps 2718 and 2719, which may be performed in amanner similar to steps 1818 and 1819 of FIG. 18. Execution of loop 2725is dependent on the test coverage achieved for phase-pair selects,weight selects, and phase rotator functionality in the inner two loops.Steps 2721 and 2722 include logging test results and exiting the test.

FIG. 28 shows a block diagram of an exemplary design flow 2900 used forexample, in semiconductor IC logic design, simulation, test, layout, andmanufacture. Design flow 2900 includes processes, machines and/ormechanisms for processing design structures or devices to generatelogically or otherwise functionally equivalent representations of thedesign structures and/or devices described above and shown in FIGS. 3,5, 9-12, 15, 17, and 19. The design structures processed and/orgenerated by design flow 2900 may be encoded on machine-readabletransmission or storage media to include data and/or instructions thatwhen executed or otherwise processed on a data processing systemgenerate a logically, structurally, mechanically, or otherwisefunctionally equivalent representation of hardware components, circuits,devices, or systems. Machines include, but are not limited to, anymachine used in an IC design process, such as designing, manufacturing,or simulating a circuit, component, device, or system. For example,machines may include: lithography machines, machines and/or equipmentfor generating masks (e.g. e-beam writers), computers or equipment forsimulating design structures, any apparatus used in the manufacturing ortest process, or any machines for programming functionally equivalentrepresentations of the design structures into any medium (e.g. a machinefor programming a programmable gate array).

Design flow 2900 may vary depending on the type of representation beingdesigned. For example, a design flow 2900 for building an applicationspecific IC (ASIC) may differ from a design flow 2900 for designing astandard component or from a design flow 2900 for instantiating thedesign into a programmable array, for example a programmable gate array(PGA) or a field programmable gate array (FPGA) offered by Altera® Inc.or Xilinx® Inc.

FIG. 28 illustrates multiple such design structures including an inputdesign structure 2920 that is preferably processed by a design process2910. Design structure 2920 may be a logical simulation design structuregenerated and processed by design process 2910 to produce a logicallyequivalent functional representation of a hardware device. Designstructure 2920 may also or alternatively comprise data and/or programinstructions that when processed by design process 2910, generate afunctional representation of the physical structure of a hardwaredevice. Whether representing functional and/or structural designfeatures, design structure 2920 may be generated using electroniccomputer-aided design (ECAD) such as implemented by a coredeveloper/designer. When encoded on a machine-readable datatransmission, gate array, or storage medium, design structure 2920 maybe accessed and processed by one or more hardware and/or softwaremodules within design process 2910 to simulate or otherwise functionallyrepresent an electronic component, circuit, electronic or logic module,apparatus, device, or system such as those shown in FIGS. 3, 5, 9-12,15, 17, and 19. As such, design structure 2920 may comprise files orother data structures including human and/or machine-readable sourcecode, compiled structures, and computer-executable code structures thatwhen processed by a design or simulation data processing system,functionally simulate or otherwise represent circuits or other levels ofhardware logic design. Such data structures may includehardware-description language (HDL) design entities or other datastructures conforming to and/or compatible with lower-level HDL designlanguages such as Verilog and VHDL, and/or higher level design languagessuch as C or C++.

Design process 2910 preferably employs and incorporates hardware and/orsoftware modules for synthesizing, translating, or otherwise processinga design/simulation functional equivalent of the components, circuits,devices, or logic structures shown in FIGS. 3, 5, 9-12, 15, 17, and 19to generate a Netlist 2980 which may contain design structures such asdesign structure 2920. Netlist 2980 may comprise, for example, compiledor otherwise processed data structures representing a list of wires,discrete components, logic gates, control circuits, I/O devices, models,etc. that describes the connections to other elements and circuits in anintegrated circuit design. Netlist 2980 may be synthesized using aniterative process in which netlist 2980 is resynthesized one or moretimes depending on design specifications and parameters for the device.As with other design structure types described herein, netlist 2980 maybe recorded on a machine-readable data storage medium or programmed intoa programmable gate array. The medium may be a non-volatile storagemedium such as a magnetic or optical disk drive, a programmable gatearray, a compact flash, or other flash memory. Additionally, or in thealternative, the medium may be a system or cache memory, buffer space,or electrically or optically conductive devices and materials on whichdata packets may be transmitted and intermediately stored via theInternet, or other networking suitable means.

Design process 2910 may include hardware and software modules forprocessing a variety of input data structure types including Netlist2980. Such data structure types may reside, for example, within libraryelements 2930 and include a set of commonly used elements, circuits, anddevices, including models, layouts, and symbolic representations, for agiven manufacturing technology (e.g., different technology nodes, 32 nm,45 nm, 90 nm, etc.). The data structure types may further include designspecifications 2940, characterization data 2950, verification data 2960,design rules 2970, and test data files 2985 which may include input testpatterns, output test results, and other testing information. Designprocess 2910 may further include, for example, standard mechanicaldesign processes such as stress analysis, thermal analysis, mechanicalevent simulation, process simulation for operations such as casting,molding, and die press forming, etc. One of ordinary skill in the art ofmechanical design can appreciate the extent of possible mechanicaldesign tools and applications used in design process 2910 withoutdeviating from the scope and spirit of the invention. Design process2910 may also include modules for performing standard circuit designprocesses such as timing analysis, verification, design rule checking,place and route operations, etc.

Design process 2910 employs and incorporates logic and physical designtools such as HDL compilers and simulation model build tools to processdesign structure 2920 together with some or all of the depictedsupporting data structures along with any additional mechanical designor data (if applicable), to generate a second design structure 2990.Design structure 2990 resides on a storage medium or programmable gatearray in a data format used for the exchange of data of mechanicaldevices and structures (e.g. information stored in a IGES, DXF,Parasolid XT, JT, DRG, or any other suitable format for storing orrendering such mechanical design structures). Similar to designstructure 2920, design structure 2990 preferably comprises one or morefiles, data structures, or other computer-encoded data or instructionsthat reside on transmission or data storage media and that whenprocessed by an ECAD system generate a logically or otherwisefunctionally equivalent form of one or more of the embodiments of theinvention shown in FIGS. 3, 5, 9-12, 15, 17, and 19. In one embodiment,design structure 2990 may comprise a compiled, executable HDL simulationmodel that functionally simulates the devices shown in FIGS. 3, 5, 9-12,15, 17, and 19.

Design structure 2990 may also employ a data format used for theexchange of layout data of integrated circuits and/or symbolic dataformat (e.g. information stored in a GDSII (GDS2), GL1, OASIS, mapfiles, or any other suitable format for storing such design datastructures). Design structure 2990 may comprise information such as, forexample, symbolic data, map files, test data files, design contentfiles, manufacturing data, layout parameters, wires, levels of metal,vias, shapes, data for routing through the manufacturing line, and anyother data required by a manufacturer or other designer/developer toproduce a device or structure as described above and shown in FIGS. 3,5, 9-12, 15, 17, and 19. Design structure 2990 may then proceed to astage 2995 where, for example, design structure 2990: proceeds totape-out, is released to manufacturing, is released to a mask house, issent to another design house, is sent back to the customer, etc.

The method as described above is used in the fabrication of integratedcircuit chips. The resulting integrated circuit chips can be distributedby the fabricator in raw wafer form (that is, as a single wafer that hasmultiple unpackaged chips), as a bare die, or in a packaged form. In thelatter case the chip is mounted in a single chip package (such as aplastic carrier, with leads that are affixed to a motherboard or otherhigher level carrier) or in a multichip package (such as a ceramiccarrier that has either or both surface interconnections or buriedinterconnections). In any case the chip is then integrated with otherchips, discrete circuit elements, and/or other signal processing devicesas part of either (a) an intermediate product, such as a motherboard, or(b) an end product. The end product can be any product that includesintegrated circuit chips, ranging from toys and other low-endapplications to advanced computer products having a display, a keyboardor other input device, and a central processor.

The descriptions of the various embodiments of the present inventionhave been presented for purposes of illustration, but are not intendedto be exhaustive or limited to the embodiments disclosed. Manymodifications and variations will be apparent to those of ordinary skillin the art without departing from the scope and spirit of the describedembodiments. The terminology used herein was chosen to best explain theprinciples of the embodiments, the practical application or technicalimprovement over technologies found in the marketplace, or to enableothers of ordinary skill in the art to understand the embodimentsdisclosed herein.

What is claimed is:
 1. A circuit for testing phase rotators, comprising:a compare element comprising a phase detector including a first inputand a second input, wherein the compare element is configured to comparea first phase of a first signal provided at the first input to a secondphase of a second signal provided at the second input; a first test busconnected to the first input; and a second test bus connected to thesecond input.
 2. The circuit of claim 1, wherein the phase detectorcomprises an analog phase detector.
 3. The circuit of claim 1, whereinthe phase detector comprises a bang bang phase detector.
 4. The circuitof claim 1, wherein the phase detector includes another input thatdetermines a sensitivity of the phase detector.
 5. The circuit of claim1, wherein: a first subset of the plurality of phase rotators areassociated with and selectively connectable to the first test bus; and asecond subset of the plurality of phase rotators are associated with andselectively connectable to the second test bus.
 6. The circuit of claim1, wherein: a single one of the plurality of phase rotators isselectively connectable to the first test bus; and all other ones of theplurality of phase rotators, other than the single one, are selectivelyconnectable to the second test bus.
 7. The circuit of claim 1, wherein aphase source that is separate from the plurality of phase rotators isselectively connectable to the first test bus.
 8. The circuit of claim7, wherein the phase source comprises an output of a phase locked loop(PLL).
 9. The circuit of claim 8, further comprising a test phaserotator in a feedback loop of the PLL.
 10. The circuit of claim 1,wherein an output of the compare element is a function a phaserelationship between the first phase and the second phase.
 11. Thecircuit of claim 1, wherein the phase detector includes another inputthat determines a dead-band of the phase detector.
 12. A system fortesting phase rotators, comprising: a first test bus connected to afirst input of a compare element comprising a phase detector; a secondtest bus connected to a second input of the compare element; and acontrol circuit configured to: selectively connect a first phase sourceto the first test bus; selectively connect a second phase sourcecomprising an output of one of a plurality of phase rotators to thesecond test bus; store an output of the compare element; and provideinputs to the plurality of phase rotators.
 13. The system of claim 12,wherein the control circuit comprises a built-in-self-test (BIST)structure.
 14. The system of claim 12, wherein the control circuit isconfigured to provide one of control signals and tuning signals to thecompare element.
 15. The system of claim 12, wherein the inputs providedto the plurality of phase rotators by the control unit include phase andweight settings.
 16. The system of claim 12, wherein the output of thecompare element is a function a phase relationship between the firstphase source and the second phase source.
 17. The system of claim 16,further comprising logic configured to compare the output of the compareelement to a predetermined expected phase relationship between the firstphase source and the second phase source.
 18. The system of claim 12,wherein the plurality of phase rotators comprises: a first set of phaserotators selectively connectable to the first test bus by a first set ofswitches; and a second set of phase rotators selectively connectable tothe second test bus by a second set of switches.